package j08string;

public class J1 {
    public static void main(String[] args) {
        //简写，语法糖
        String s = "aaa";
        System.out.println("s = " + s);
        s = "www";
        System.out.println("s = " + s);
        System.out.println("=====");
        String s1 = new String();
        System.out.println("s1 = " + s1);//""
        String s2 = new String(new char[]{'a','b','c'});
        System.out.println("s2 = " + s2);//"abc"

        String s3 = new String(new char[]{'a',98,'m','w'},2,2);
        System.out.println("s3 = " + s3);
    }
}
